﻿using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SkiaAndModel.ViewModels
{
  public  class MainWindowViewModel : ReactiveObject
    {
        public ObservableCollection<NodeAbstract.INode> Nets { get; set; }
        public Tree myTree { get; set; }
        public double length { get; set; } = 30;
        public MainWindowViewModel()
        {
            myTree  = new Tree();
            //List<string> arr = myTree.GetPathHelper(myTree.Root[0].Children[0].NextNode);
            //GetPathArray
            PathArray = myTree.GetPathArray();

            //myTree.GetNetPath();
            TreeHeight = myTree.GetHeight();
        }

        [Reactive]
        public string Title { get; set; } = "SHINVA";

        [Reactive]
        public List<string> PathArray { get; set; }

        [Reactive]
        public int  TreeHeight { get; set; }

        [Reactive]
        public double LineLength { get; set; } 

    }
}
